package com.crazy.shell.provider.entity.respority;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

/**
 * Created by creazier.huang on 16/10/9.
 */
@Document
public class Resume {
    private static final Logger logger = LoggerFactory.getLogger(Resume.class);

    @Id
    private String id;


    private Date createDate;

    private String context;


    public Resume() {
    }

    public Resume(String context) {
        this.context = context;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Date getCreateDate() {

        return createDate==null ? new Date() :createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getContext() {
        return context;
    }

    public void setContext(String context) {
        this.context = context;
    }

    @Override
    public String toString() {
        return "Resume{" +
                "id='" + id + '\'' +
                ", createDate=" + createDate +
                ", context='" + context + '\'' +
                '}';
    }
}
